import service from ".";
//将data进项类型设置
interface LoginData {
    username: string,
    password: string
}
//因为data传入过来的username和password所以先进行类型规范
//登录接口
export function login(data: LoginData) {
    return service({
        url: '/login',
        method: 'post',
        data
    })
}
//商品列表接口
export function getGoodsList() {
    return service({
        url: '/getGoodsList',
        method: 'get'
    })
}